#ifndef __MYSTDIO_H__
#define __MYSTDIO_H__
#define SIZE 1024

#define FLUSH_NOW 1
#define FLUSH_COLUM 2
#define FLUSH_ALL 4

typedef struct IO_FILE
{
   int fileno;
   int flush_flag;
   char inbuffer[SIZE];
   int put_pos;

}_FILE;


_FILE* _fopen(const char* filename,const char* flag);
int _fwrite(_FILE* fp, const char* str, int len);
void _fclose(_FILE* fp);


#endif

